import React from 'react';
import { ViewLine } from 'view-ui';
import * as  echarts from 'echarts';

export default () => {
  const Option = {
    xAxis: {
      type: 'category',
      data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
    },
    yAxis: {
      type: 'value'
    },
    series: [
      {
        data: [150, 230, 224, 218, 135, 147, 260],
        type: 'line'
      }
    ]
  };
  
  
  
  return (
    <div>
      <header style={{ margin: '20px 0' }}>基础折线图</header>
      <ViewLine 
        option={Option as echarts.EChartsOption}
        styles={{ width: '100%', height: '400px' }}
      ></ViewLine>
    </div>
  );
}
